#ifndef XMLPARSER_H
#define XMLPARSER_H

extern "C"
{
#include <avcodec.h>
#include <avformat.h>
#include <swscale.h> 
#include <fifo.h>
}

#include "Scene.h"
#include "Container.h"

#include <string>
#include <QString>
#include <QStringList>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <QtXml/QtXml>

#define IO_ReadOnly QIODevice::ReadOnly
#define IO_WriteOnly QIODevice::WriteOnly
#define IO_ReadWrite QIODevice::ReadWrite
#define IO_Append QIODevice::Append
#define IO_Truncate QIODevice::Truncate
#define IO_Translate QIODevice::Text
#define IO_ModeMask 0x00ff

class XMLParser
{
public:
	XMLParser(char *filename);
	~XMLParser();
private:
	void ParseScene(QDomElement e);
	void ParseOutput(QDomElement e);
	int ConvertTimestamp(int hours, int minutes, int secondes);
	Container output;
};

#endif